package com.springsecurity.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "Pais", uniqueConstraints=@UniqueConstraint(columnNames="sg_pais"))
public class Pais implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue
	@Column(name = "id_pais")
	private int id_pais;
	
	@Column(unique=true, nullable=false, length=03)
	private String sg_pais;
	
	@Column(length=50)
    private String nm_pais;

	public int getId_pais() {
		return id_pais;
	}

	public void setId_pais(int id_pais) {
		this.id_pais = id_pais;
	}

	public String getSg_pais() {
		return sg_pais;
	}

	public void setSg_pais(String sg_pais) {
		this.sg_pais = sg_pais;
	}

	public String getNm_pais() {
		return nm_pais;
	}

	public void setNm_pais(String nm_pais) {
		this.nm_pais = nm_pais;
	}
    
	

}
